package org.zjx.data.screen;

import org.zjx.command.entity.screen.Room;
import org.zjx.data.BaseSceneBuilder;
import java.awt.*;

public class DaTangGuanFuSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "大唐官府";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(164, 103);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("程府守卫", new Point(121, 22));
        addNpc("程府守卫", new Point(129, 26));
        addNpc("程府守卫", new Point(90, 8));
        addNpc("程府守卫", new Point(156, 41));
        addNpc("程夫人", new Point(29, 78));
        addNpc("丫鬟", new Point(26, 77));
        addNpc("传送兵", new Point(73, 43));
    }

    @Override
    protected void addRooms() {
        Room chengYaoJinHouse = createRoom("程咬金府", new Dimension(50, 37));
        addNpcToRoom(chengYaoJinHouse, "程咬金", new Point(20, 17));
        rooms.add(chengYaoJinHouse);
    }

    @Override
    protected void addTeleports() {
        // 场景传送点
        addSceneTeleport(new Point(156, 8), "长安城", new Point(312, 272), new Point(163, 9));
        addSceneTeleport(new Point(78, 45), "程咬金府", new Point(34, 8), new Point(76, 48));

        // 房间入口传送点
        addRoomTeleport(new Point(78, 45), "程咬金府", new Point(34, 8), new Point(76, 48));
    }

    public static void main(String[] args) {
        DaTangGuanFuSceneBuilder builder = new DaTangGuanFuSceneBuilder();
        builder.execute("datang_guanfu_scene.json", "大唐官府");
    }
}